﻿using System.Collections.Generic;
using DBConnection.Helper;
using DBConnection.Interfaces;

namespace DBConnection
{
    abstract class BaseConnection:IConnectionFunc
    {
        protected List<string> result;
        protected List<string>[] res; 

        public string ConnectionString { get; set; }

        protected BaseConnection()
        {
            result = new List<string>();
            ConnectionString = "";
        }

        protected BaseConnection(string aconnectionString)
        {
            result = new List<string>();
            ConnectionString = aconnectionString;
        }
        //public virtual List<string> Select(string query)
        //{
        //    return result;
        //}
        public virtual List<string> Select(Table tablename, Column tablecolumn)
        {
            return result;
        }

        public virtual List<string> Select(Table tablename, Column tablecolumn, string condition, string conditional)
        {
            return result;
        }

        public virtual List<string> Select(Table tablename, Column tablecolumn, string condition, int conditionval)
        {
            return result;
        }

        public virtual List<string>[] Select(Table aTable)
        {
            res = new List<string>[]{};
            return res;
        }

        public virtual List<string>[] Select(Table tablename,Column[] column)
        {
            res=new List<string>[]{};
            return res;
        }
    }
}
